package com.isesol.ime.service;

import com.google.common.collect.*;
import com.isesol.ime.dal.mapper.*;
import com.isesol.ime.dal.model.*;
import org.springframework.stereotype.*;

import javax.annotation.*;
import java.util.*;

/**
 * 机床参数集
 */
@Component
public class ParamVersionService{

	@Resource
	ParamVersionMapper paramVersionMapper;

	public Map getAll(){

		Map m = Maps.newHashMap();

		List<ParamVersionDO> paramVersionDOList = paramVersionMapper.findActiveParamVersion();

		m.put("items", paramVersionDOList);

		return m;
	}

	public Map findAllValidName(){

		Map m = Maps.newHashMap();

		List<String> list = paramVersionMapper.findAllValidName();

		m.put("items", list);

		return m;
	}

}
